# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        博智科技  
# Name:         demo827
# Description:
# Author:       yzl
# Date:         2019-02-07
#-------------------------------------------------------------------------------

class Myclass:
    name = 'zhangsan'

    def getName(self):
        pass

myclass = Myclass()

print(hasattr(myclass,'name'))
setattr(myclass,'age',30)
print(myclass.age)

